/*
 * @Description: 获取token
 * @Date: 2020-10-23 10:05:52
 * @LastEditTime: 2020-10-23 16:06:37
 */

const reducer = (token = '', action) => {
    switch (action.type) {
        case 'token': // 设置用户信息用户信息
            return action.data
        default:
            return token
    }
}

export default reducer
